﻿using System;

namespace Automator.Tasks.Core
{
    public class AddDependencyException: Exception
    {
        public override string Message 
        {
            get { return "Task can not have dependencies"; }
        }
    }
    
    public class TaskExecutionException: Exception
    {      
        public TaskExecutionException(string message): base(message) { }        
        public TaskExecutionException(string message, Exception innerException): base(message, innerException) { }
    }
    
    public class TaskConditionException: Exception 
    { 
        public TaskConditionException(string message): base(message) { }
        public TaskConditionException(string message, Exception innerException): base(message, innerException) { }
    }
}
